home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / CRandomize.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-19  |  619 b   |  31 lines  |  [TEXT/KAHL]

  1. /* CRandomize.c */
  2.  
  3. #include "CRandomize.h"
  4. #include "CMyDocument.h"
  5. #include "LocationConstants.h"
  6. #include "CWindow.h"
  7.  
  8.  
  9. void                CRandomize::IRandomize(CMyDocument* TheDocument, CWindow* TheWindow)
  10.     {
  11.         LongPoint            LocalStart,LocalExtent;
  12.  
  13.         Document = TheDocument;
  14.         GetRect(RandomizeID,&LocalStart,&LocalExtent);
  15.         ICheckbox(LocalStart,LocalExtent,GetCString(RandomizeID),
  16.             0,0,applFont,9,TheWindow,TheWindow);
  17.     }
  18.  
  19.  
  20. MyBoolean        CRandomize::DoThang(void)
  21.     {
  22.         MyBoolean            Result;
  23.  
  24.         Result = inherited::DoThang();
  25.         if (Document->Randomize != State)
  26.             {
  27.                 Document->SetRandomize(State);
  28.             }
  29.         return Result;
  30.     }
  31.